package v1

import (
	"github.com/gin-gonic/gin"
	"go-api-template/api/middleware"
	"go-api-template/api/router/v1/admin"
	"go-api-template/api/router/v1/front"
	"go-api-template/api/router/v1/tmp"
)

func SetRouter(r *gin.RouterGroup) {
	rg := r.Group("/v1")
	rg.Use(middleware.UserLoginMid())

	// 后台路由
	admin.SetRouter(rg)
	front.SetRouter(rg)
	tmp.SetRouter(rg)
}
